﻿@model Tss.MagicWeb.ViewModels.MainMenuContainer

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
    <ul class="nav">
    @foreach(var menuItem in Model.Items.Where(mi => !mi.AlignedToRight)) {
        
          <li><a href="@(menuItem.Action == null ? "javascript:void(0);" : Url.Action(menuItem.Action, menuItem.Controller))" @(menuItem.OnClick == null ? String.Empty : "onclick="+menuItem.OnClick)  >@menuItem.Text</a></li>
        
        

        }
 </ul>
 <ul class="nav pull-right">
     @foreach(var menuItem in Model.Items.Where(mi => mi.AlignedToRight)) {
        
          <li><a href="@(menuItem.Action == null ? "javascript:void(0);" : Url.Action(menuItem.Action, menuItem.Controller))" @(menuItem.OnClick == null ? String.Empty : "onclick="+menuItem.OnClick)  >@menuItem.Text</a></li>
        
        

        }
 </ul>
    </div>
  </div>
  </div>